package com.yuelife.entity;

import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (CComment)实体类
 *
 * @author makejava
 * @since 2020-06-12 15:55:14
 */
@Data
public class CComment implements Serializable {
    private static final long serialVersionUID = -66152183202559824L;
    /**
    * id
    */
    private Integer id;
    /**
    * 主贴ID
    */
    private Integer discusion;
    /**
    * 创建人
    */
    private String createdBy;
    /**
    * 创建时间
    */
    private Date createDate;
    /**
    * 图片
    */
    private String img;
    /**
    * 跟帖分类（1.主贴下面的回复，2.跟帖下面的回复）
    */
    private Integer status;
    /**
    * 点赞数
    */
    private Integer likes;
    /**
    * 楼层
    */
    private Integer floor;
    /**
    * 回复的谁
    */
    private String commentTo;
    /**
    * 回复数
    */
    private Integer commentCount;
    /**
    * 回复内容
    */
    private String content;

    /**
     * 评论下面的回复
     * @return
     */
    private List<CComment> comments;

    /**
     * 主题帖
    * @Author: yangsen
    * create time: 2020/6/29 11:33
    */
    private CDiscussion discussion;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<CComment> getComments() {
        return comments;
    }

    public void setComments(List<CComment> comments) {
        this.comments = comments;
    }

    public CDiscussion getDiscussion() {
        return discussion;
    }

    public void setDiscussion(CDiscussion discussion) {
        this.discussion = discussion;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDiscusion() {
        return discusion;
    }

    public void setDiscusion(Integer discusion) {
        this.discusion = discusion;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public String getCommentTo() {
        return commentTo;
    }

    public void setCommentTo(String commentTo) {
        this.commentTo = commentTo;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}